﻿using System.Web.Mvc;
using Century.Common.Business.BOL.Common;
using Telerik.Web.Mvc;
using Century.Models.Common;
using Century.Web.Security.Attributes;
using Century.Web.UI.MVC;

namespace Century.Admin.Controllers
{
    //[Kooboo.CMS.Web.Authorizations.Authorization(AreaName = "AdminTools", Group = "", Name = "Log")]
    [Authorization(Group = "", Name = "Log")]
    public class LogController : CenturyAdminBaseController
    {
        //
        // GET: /CenturyCommon/Log/
        LogBSO logBSO = new LogBSO();

        public ActionResult Index()
        {

            return View();
        }

        [GridAction]
        public ActionResult _AjaxBinding()
        {
            return View(new GridModel<Log>
            {
                Data = logBSO.GetAll()
            });
        }

    }
}